<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets">

<h:head>
	<title>Modify Attractions</title>
</h:head>

<h:body>
	<h:form>
		<p:panel header="Modify Attraction">
			<h:panelGrid columns="3" id="regGrid">

				<h:outputLabel for="airport1">Departure Airport:</h:outputLabel>
				<p:inputText id="airport1" value="#{FlightBean.flightDTO2.departure_airport}" />
				<p:message for="airport1" />

				<h:outputLabel for="airport2">Arrival Airport:</h:outputLabel>
				<p:inputText id="airport2" value="#{FlightBean.flightDTO2.arrival_airport}" />
				<p:message for="airport2" />
				
				<h:outputLabel for="class_">Class:</h:outputLabel>
				<p:inputText id="class_" value="#{FlightBean.flightDTO2.class_}" />
				<p:message for="class_" />
				
				<h:outputLabel for="spots">Spots:</h:outputLabel>
				<p:inputText id="spots" value="#{FlightBean.flightDTO2.spots}" />
				<p:message for="spots" />
				
				<h:outputLabel for="price">Price:</h:outputLabel>
				<p:inputText id="price" value="#{FlightBean.flightDTO2.price}" />
				<p:message for="price" />
				
				<h:outputLabel for="visibility">Visibility:</h:outputLabel>
				<p:inputText id="visibility" value="#{FlightBean.flightDTO2.visibility}">
                <f:validator validatorId="validateBoolean" />
                </p:inputText>
                <p:message for="visibility" />
                
                	
		</h:panelGrid>
		
		<p:commandButton value="save Modifies" update="regGrid" action="#{FlightBean.updateFlight()}" /> 
		</p:panel>
	</h:form>
	
	<h:link outcome="/admin/index" value="HomePage" /> <br />
</h:body>
</html>